package vip.xiaonuo.app.core.exception;

import lombok.Getter;
import vip.xiaonuo.core.exception.enums.abs.AbstractBaseExceptionEnum;

/**
 * <p>Title : App端用户权限异常</p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/9/11 15:57
 */
@Getter
public class AppUserAuthException extends RuntimeException {

    private final Integer code;

    private final String errorMessage;

    public AppUserAuthException(AbstractBaseExceptionEnum exception) {
        super(exception.getMessage());
        this.code = exception.getCode();
        this.errorMessage = exception.getMessage();
    }
}
